var child_process = require("child_process");
var spawn = child_process.spawn;

let cmd = "E:\\ffmpeg\\bin\\ffmpeg -i C:\\Users\\ibo\\Desktop\\ff_test\\1.mp4 -y C:\\Users\\ibo\\Desktop\\ff_test\\temp_temp.mp4";
var result = spawn('cmd.exe', ['/s', '/c', cmd]);
result.on('close', function(code) {
    console.log('child process exited with code :' + code);
});
result.stdout.on('data', function(data) {
    console.log('stdout: ' + data);
});
result.stderr.on('data', function(data) {
    console.log('stderr: ' + data);
});

console.log("开始进程 : [ ",result.pid+" ]")

